get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)

add_llvm_tool(wafer-opt
  wafer-opt.cpp
)

target_link_libraries(wafer-opt
  PRIVATE
  ${dialect_libs}
  ${conversion_libs}
  MLIROptLib
  LowerPadMessage
  LowerCryptoToGpu
  # LowerCryptoToSST
  LowerSSTToLLVM
  LowerCryptoToX86WithOutSHA1ISA
  LowerCryptoToHyper
  LowerHyperToDevice
  SchedulingOnDevices
  LowerCryptoToCGRA
  LowerCryptoToFPGA
)
